import React, { Component } from 'react'
import {NavLink} from "react-router-dom"
import RouterView from "../../router/routerView"
interface IProps{
    route:any
}
class Home extends Component <IProps>{
    render() {
        let  {route} =this.props
        return (
            <div className="home">
                <main>
                    <RouterView route={route}></RouterView>
                </main>
                <footer>
                    <NavLink to="/home/index">首页</NavLink>
                    <NavLink to="/home/my">我的</NavLink>
                </footer>
            </div>
        )
    }
}

export default Home
